//修改用户状态
function updateStatus(uid,enable){
		$.post(PATH + "/updateSysUserStatus.do", {
			uid : uid,
			enable:enable
		}, function(data) {
			if (data != null) {
				if (data.ret == 1) {
					top.layer.msg('删除成功.......', {time: 1000, icon:6});
				} else {
					top.layer.alert('删除失败....', {time: 1000,skin: 'layui-layer-lan',closeBtn: 0,anim: 4,icon : 5});
				}
			}
		});
}

//查询
function search() {
	var enable = $("#enable").val();
	var username = $("#username").val();
	var contact =encodeURIComponent(encodeURIComponent($("#contact").val()));
	var tel = $("#tel").val();

	window.location.href = "sysUserList.do?enable=" + enable+ "&username=" + username+"&contact="+contact+"&tel="+tel;
}
//删除
function Delete(id)
{
	if (confirm("删除不可恢复，您确定要删除吗？")) {
		//删除
		$.post(PATH + "/deleteSysUser.do", {
			id : id
		}, function(data) {
			if (data != null) {
				if (data.ret == 1) {
					$("#tr_"+id).remove();
					top.layer.msg('删除成功.......', {time: 1000, icon:6});
				} else {
					top.layer.alert('删除失败....', {time: 1000,skin: 'layui-layer-lan',closeBtn: 0,anim: 4,icon : 5});
				}
			}
		});
	}
}